// Copyright 2012 Google Inc. All Rights Reserved.

package com.google.superlists.model;

/**
 * Representation of a task list, used to serialize json.
 *
 * @author sven@google.com (Sven Mawson)
 */
public class SuperTaskList {

  /** Parses a SuperTaskList from json. */
  public static SuperTaskList fromJson(String json) {
    return JsonUtil.fromJson(json, SuperTaskList.class);
  }

  /** ID of the task list. */
  public String id;

  /** Title of the task list. */
  public String title;

  /** Public constructor for GSON. */
  public SuperTaskList() {}

  /** Renders a SuperTaskList as json. */
  public String toJson() {
    return JsonUtil.toJson(this);
  }
}
